package _03oop

class PersonManager {

    //如果想要metaClass注入方法、属性在所有文件生效
    static void init() {
        ExpandoMetaClass.enableGlobally()
        Person.metaClass.printName = { String name -> println "hello ${name}" }
    }
}
